home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSEEEETTTTPPPPGGGGRRRRPPPP((((2222)))) SSSSEEEETTTTPPPPGGGGRRRRPPPP((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- setpgrp, BSDsetpgrp - set process group ID (System V and 4.3BSD)
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<uuuunnnniiiissssttttdddd....hhhh>>>>
-
- _S_y_s_V:
- ppppiiiidddd____tttt sssseeeettttppppggggrrrrpppp ((((vvvvooooiiiidddd))));;;;
-
- _B_S_D:
- Links with the BSD version automatically:
- iiiinnnntttt BBBBSSSSDDDDsssseeeettttppppggggrrrrpppp((((iiiinnnntttt ppppiiiidddd,,,, iiiinnnntttt ppppggggrrrrpppp))));;;;
-
- Links with the BSD version if -_l_b_s_d is specified during link phase:
- iiiinnnntttt sssseeeettttppppggggrrrrpppp((((iiiinnnntttt ppppiiiidddd,,,, iiiinnnntttt ppppggggrrrrpppp))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The System V version of _s_e_t_p_g_r_p behaves identically to _s_e_t_s_i_d (2).
-
- The BSD version of _s_e_t_p_g_r_p sets the process group of the specified
- process _p_i_d to the specified _p_g_r_p. If _p_i_d is zero, then the call applies
- to the current process. If _p_g_r_p is zero and pid refers to the calling
- process, _s_e_t_p_g_r_p() behaves identically to _s_e_t_s_i_d (2). If the invoker is
- not the super-user, then the affected process must have the same
- effective user-id as the invoker or be a member of the same session as
- the calling process.
-
- EEEERRRRRRRROOOORRRRSSSS:::: BBBBSSSSDDDD VVVVEEEERRRRSSSSIIIIOOOONNNN OOOONNNNLLLLYYYY
- _B_S_D_s_e_t_p_g_r_p will fail and the process group will not be altered if one of
- the following occur:
-
- [ESRCH] The requested process does not exist.
-
- [EPERM] The effective user ID of the requested process is
- different from that of the caller and the process is not
- in the same session as the calling process.
-
- [EACCES] In the Trusted IRIX environment, the Mandatory Access
- Control (MAC) label of the calling process is not equal to
- the MAC label of _p_i_d and the calling process does not have
- the CCCCAAAAPPPP____MMMMAAAACCCC____RRRREEEEAAAADDDD and CCCCAAAAPPPP____MMMMAAAACCCC____WWWWRRRRIIIITTTTEEEE capabilities(4).
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- exec(2), fork(2), getpgrp(2), getpid(2), intro(2), kill(2), setpgid(2),
- setsid(2), signal(2), capabilities(4), dominance(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- The System V version of _s_e_t_p_g_r_p returns the value of the new process
- group ID with no possibility of error. The BSD version returns 0 if the
- operation is successful. If the request fails, -1 is returned and the
- global variable _e_r_r_n_o is set to indicate the reason.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSEEEETTTTPPPPGGGGRRRRPPPP((((2222)))) SSSSEEEETTTTPPPPGGGGRRRRPPPP((((2222))))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
-